package shuai3.action;

import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Date;

public class OrderAction extends BaseAction {
	private Date orderDate;
	
	public String execute() throws Exception{
		PrintWriter out=getResponse().getWriter();
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy/MM/dd");
		out.println("日期是： "+sdf.format(orderDate));
		return null;
	} 

	public Date getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}
}
